package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 课时核对
 * </p>
 *
 * @author hpiggy
 * @since 2024-06-04
 */
@Data
@TableName("record_course_check")
@ApiModel(value = "RecordCourseCheck对象", description = "课时核对")
public class RecordCourseCheck implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.NONE)
    private Long id;

    @ApiModelProperty("记上课id")
    private Long recordCourseId;

    @ApiModelProperty("本次扣课时")
    private Integer buckleClassHouse;

    @ApiModelProperty("本次扣除金额")
    private BigDecimal buckleClassMoney;

    @ApiModelProperty("剩余课时")
    private Integer residueCourseCount;

    @ApiModelProperty("剩余金额")
    private BigDecimal residuePrice;

    @ApiModelProperty("添加时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedAt;


}
